package com.happystudy;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.github.tobato.fastdfs.FdfsClientConfig;
import com.happystudy.configuration.BaseUrlConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * @author LYJ
 */
@EnableDubbo
@SpringBootApplication
@Import({BaseUrlConfig.class, FdfsClientConfig.class})
@MapperScan(basePackages = "com.happystudy.mapper")
public class HappyStudyApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(HappyStudyApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("我的spring启动了");
    }
}
